/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Vector;
/**
 *
 * @author josue
 */
public class PriorityVector<E extends Comparable<E>> implements PriorityQueue {
    
    protected Vector<E> data;
    
    public PriorityVector(){ // post: constructs a new priority queue {
    data = new Vector<E>();
    }

    @Override
    public E getFirst() {
       // pre: !isEmpty() // post: returns the minimum value in the priority queue {
        return data.get(0);
    }
    

    @Override
    public E remove() {
        return data.remove(0);
    }

    @Override
    public boolean isEmpty() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int size() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void clear() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void add(E value) {
        data.add(value);
    }
    
    
}
